package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.QueryObject;

import javax.management.Query;
import java.util.List;

//定义操作Department表的方法
public interface DepartmentMapper {

    //增加的方法
    void save(Department dept);

    //删除数据的方法
    void delete(Long id);

    void update(Department dept);

    //根据id查询部门
    Department get(Long id);

    //查询所有的部门
    List<Department> listAll();
    //查询总条数
    int selectForCount(QueryObject qo);

    //查询结果集
    List<Department> selectForList(QueryObject qo);
}
